package scenic.toolkit;

import scenic.toolkit.db.Property;

public class ButtonModel extends ComponentModel {
	private static Property<Double> widthProperty = new Property<Double>("width");
	private static Property<Double> heightProperty = new Property<Double>("height");
	private static Property<ComponentModel> contentProperty = new Property<ComponentModel>("content");

	public ButtonModel() {
	}
	
	public ButtonView createComponent() {
		return new ButtonView(this);
	}
	
	public ComponentModel getContent() {
		return contentProperty.get(this);
	}

	public void setContent(scenic.toolkit.ComponentModel component) {
		contentProperty.set(this, component);
	}	

	public double getWidth() {
		return widthProperty.get(this);
	}

	public void setWidth(double width) {
		widthProperty.set(this, width);
	}

	public double getHeight() {
		return heightProperty.get(this);
	}

	public void setHeight(double height) {
		heightProperty.set(this, height);
	}
}
